package com.YY.server.service;

import com.YY.server.pojo.Department;
import com.YY.server.pojo.RespBean;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author YaoYu
 * @since 2022-01-14
 */
public interface IDepartmentService extends IService<Department> {

    //获取所有部门
    List<Department> getAllDepartments();

    //添加部门
    RespBean addDep(Department department);

    //删除部门
    RespBean deleteDep(Integer id);
}
